package web.servlet.userlist.domin;

import java.util.List;

/**
 * @Author Administrator
 * @Date 2020/6/28 8:38
 **/
public class PageBean<T> {
    private  int cuttentPage;
    private  int rows;
    private  int totalCount;
    private  int totalPage;
    private List<T> list;

    public PageBean() {
    }

    public PageBean(int cuttentPage, int rows, int totalCount, int totalPage, List<T> list) {
        this.cuttentPage = cuttentPage;
        this.rows = rows;
        this.totalCount = totalCount;
        this.totalPage = totalPage;
        this.list = list;
    }

    public int getCuttentPage() {
        return cuttentPage;
    }

    public void setCuttentPage(int cuttentPage) {
        this.cuttentPage = cuttentPage;
    }

    public int getRows() {
        return rows;
    }

    public void setRows(int rows) {
        this.rows = rows;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    @Override
    public String toString() {
        return "PageBean{" +
                "CuttentPage=" + cuttentPage +
                ", rows=" + rows +
                ", totalCount=" + totalCount +
                ", totalPage=" + totalPage +
                ", list=" + list +
                '}';
    }
}
